<template>
  <div>
    <el-form class="viewForm" label-width="80px">
                        <el-col :span="12">
                <el-form-item label="姓名">
                    <div v-html="viewModel.name"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="电话">
                    <div v-html="viewModel.phone"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="账号">
                    <div v-html="viewModel.no"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="email">
                    <div v-html="viewModel.email"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="职位">
                    <div v-html="viewModel.job"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="主要部门">
                    <div v-html="viewModel.structureName"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="辅助部门">
                    <div v-html="viewModel.departments"></div>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item label="权限类型">
                    <div v-html="viewModel.permissionTypeName"></div>
                </el-form-item>
            </el-col>
    </el-form>
  </div>
</template>

<script>
  import common from "@/mixins/common.js";
  var config = {};
  config.methods = {};
  config.mixins = [common];

  config.data = function () {
    return {
      viewModel: {},
      activeIndex: "1"
    }
  };
  config.mounted = function () {
    var id = this.$route.query.id;
    var self = this;
    var data = {};
    data.id = id;
    this.postData("/tenantRest/employee/view.htm", data, function (res) {
      if (res.code == 0) {
        self.viewModel = res;
      }
    });
  }

  export default config;
</script>

<style scoped>

</style>